{% extends "index.html" %}
{% block content %}
{% for entry in entries %}
  <div class="header">{{ entry.title }}</div>
  <div class="content">{{ entry.text|linebreaks}}</div>
  <div class="footer">
    <div>
      {{ entry.pub_date|date:"F jS Y g:i A" }}
      {% if not show_comments %}
        <a href="{{ entry.url }}#comments">Comments ({{ entry.comment_count }})</a>
      {% endif %}
    </div>
  </div>
  {% if show_comments %}
    {% if entry.comments %}
      <div class=comments><a name="comments"></a>Comments:</div>
      {% for comment in entry.comments %}
      {% include "comment.html" %}
      {% endfor %}
    {% else %}
      <div class=comments>No comments.</div>
    {% endif %}
    <div class=comments>Add a comment:</div>
    <div class=content>
      <div class=text>
	<form action=".#comments" method="post">
	  <textarea name=text style="width: 100%; height: 150px; font-size: font-family: Arial, sans-serif;"></textarea>
	  <p class=input>Name <input type="text" name="name" /></p>
	  <p class=input>URL <input type="text" name="url" /></p>
	  <p class=input><input type="submit" value="Post"/></p>
	  </table>
	</form>
      </div>
    </div>
  {% endif %}
{% endfor %}
{% endblock %}
      
